package com.applozic.mobicomkit.uiwidgets.conversation.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import com.applozic.mobicomkit.api.conversation.Message;
import com.lottery.ruok.lottrey.R;
import com.lottery.ruok.lottrey.ui.component.BaseRelativeLayout;

import butterknife.BindView;

public class ApplozicCustomMessageView extends BaseRelativeLayout {
    @BindView(R.id.applozic_custom_message_layout_content)
    TextView customContentTextView;

    public ApplozicCustomMessageView(Context context) {
        super(context);
    }

    public ApplozicCustomMessageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ApplozicCustomMessageView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void init(Context context, AttributeSet attrs, int defStyleAttr) {

    }

    @Override
    protected void initView(Context context) {
        setContentView(R.layout.applozic_custom_message_layout);
    }

    @Override
    protected void load(Context context) {

    }

    public void setData(Message message) {
        customContentTextView.setText(message.getMessage());
        customContentTextView.setVisibility(View.VISIBLE);
    }
}
